package com.umeox.watch.moto.dataservice.db.model;

import androidx.room.Entity;
import androidx.room.PrimaryKey;

/**
 * Created by Rambo 2021/9/23
 * Describe:
 */
@Entity(tableName = "fences")
public class Fences {

    @PrimaryKey
    private long id;

    private String name;

    private int type;

    private int coordType;

    private double lat;

    private double lng;

    private double radius;

    private String vertexes;

    private int offset;

    private String repeatExpression;

    private String startTime;

    private String endTime;

    private boolean enterAlarm;

    private boolean leaveAlarm;

    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public int getCoordType() {
        return coordType;
    }

    public void setCoordType(int coordType) {
        this.coordType = coordType;
    }

    public double getLat() {
        return lat;
    }

    public void setLat(double lat) {
        this.lat = lat;
    }

    public double getLng() {
        return lng;
    }

    public void setLng(double lng) {
        this.lng = lng;
    }

    public double getRadius() {
        return radius;
    }

    public void setRadius(double radius) {
        this.radius = radius;
    }

    public String getVertexes() {
        return vertexes;
    }

    public void setVertexes(String vertexes) {
        this.vertexes = vertexes;
    }

    public int getOffset() {
        return offset;
    }

    public void setOffset(int offset) {
        this.offset = offset;
    }

    public String getRepeatExpression() {
        return repeatExpression;
    }

    public void setRepeatExpression(String repeatExpression) {
        this.repeatExpression = repeatExpression;
    }

    public String getStartTime() {
        return startTime;
    }

    public void setStartTime(String startTime) {
        this.startTime = startTime;
    }

    public String getEndTime() {
        return endTime;
    }

    public void setEndTime(String endTime) {
        this.endTime = endTime;
    }

    public boolean isEnterAlarm() {
        return enterAlarm;
    }

    public void setEnterAlarm(boolean enterAlarm) {
        this.enterAlarm = enterAlarm;
    }

    public boolean isLeaveAlarm() {
        return leaveAlarm;
    }

    public void setLeaveAlarm(boolean leaveAlarm) {
        this.leaveAlarm = leaveAlarm;
    }


    @Override
    public String toString() {
        return "Fences{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", type=" + type +
                ", coordType=" + coordType +
                ", lat=" + lat +
                ", lng=" + lng +
                ", radius=" + radius +
                ", vertexes='" + vertexes + '\'' +
                ", offset=" + offset +
                ", repeatExpression='" + repeatExpression + '\'' +
                ", startTime='" + startTime + '\'' +
                ", endTime='" + endTime + '\'' +
                ", enterAlarm=" + enterAlarm +
                ", leaveAlarm=" + leaveAlarm +
                '}';
    }
}
